package cn.shiva.redisunit.message.pubsub;

import lombok.extern.slf4j.Slf4j;
import org.springframework.data.redis.connection.Message;
import org.springframework.data.redis.connection.MessageListener;
import org.springframework.stereotype.Component;

/**
 * @author shiva   2022-08-15 21:44
 */
@Component
@Slf4j
public class MessageSubHandler implements MessageListener {
    @Override
    public void onMessage(Message message, byte[] pattern) {
        log.info(message.toString());
    }
}
